package server.business.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.TransferState;
import server.business.service.TransferStateService;
import server.business.utils.results.ysl.Result;

import java.util.List;

@RestController
@RequestMapping("transferState")
public class TransferStateController {
    @Autowired
    TransferStateService transferStateService;

    @GetMapping(value = "/normal/getName")
    public Result getName(){
        List<TransferState> stateList = transferStateService.list();
        return Result.success(stateList);
    }
}
